package cn.iocoder.yudao.module.enterprise.convert.account;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.enterprise.controller.admin.account.vo.AccountSourceCreateReqVO;
import cn.iocoder.yudao.module.enterprise.controller.admin.account.vo.AccountSourceRespVO;
import cn.iocoder.yudao.module.enterprise.controller.admin.account.vo.AccountSourceUpdateReqVO;
import cn.iocoder.yudao.module.enterprise.dal.dataobject.account.AccountSourceDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 碳排放核算和排放源关联 Convert
 *
 * @author StevenShen
 */
@Mapper
public interface AccountSourceConvert {

    AccountSourceConvert INSTANCE = Mappers.getMapper(AccountSourceConvert.class);

    AccountSourceDO convert(AccountSourceCreateReqVO bean);

    AccountSourceDO convert(AccountSourceUpdateReqVO bean);

    AccountSourceRespVO convert(AccountSourceDO bean);

    List<AccountSourceRespVO> convertList(List<AccountSourceDO> list);

    PageResult<AccountSourceRespVO> convertPage(PageResult<AccountSourceDO> page);

}
